<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动元素搭配标准流父盒子</title>
</head>
<style>
    .box{
        width: 1200px;
        height: 460px;
        background-color: chartreuse;
        margin: 0 auto;
    }
    .left{
        float: left;
        width: 250px;
        height: 460px;
        background-color:cornflowerblue;
    }
    .right{
        float: left;
        width: 950px;
        height: 460px;
        background-color: darkorange;
    }
</style>
<body>
    <div class="box">
        <div class="left">左侧</div>
        <div class="right">右侧</div>
    </div>
</body>
</html>